package com.cn.crmsystem.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.data.annotation.Id;
import sun.awt.SunHints;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "线索和客户基本数据实体(Customer)")
public class Customer implements Serializable {

  @Id
  @ApiModelProperty("主键 id （不用传值）")
  private Long id;

  @ApiModelProperty("名称")
  private String name;

  @ApiModelProperty("负责人id")
  private Long user_id;

  @ApiModelProperty( "手机")
  private String phone;

  @ApiModelProperty( "电话")
  private String telephone;

  @ApiModelProperty("线索（客户）行业")
  private Integer industry;

  @ApiModelProperty( "地址")
  private String address;

  @ApiModelProperty( "线索（客户）来源")
  private Long clues_source;

  @ApiModelProperty("线索（客户）级别 (0:重点)(1：普通)(2：非优先)")
  private Integer level;

  @ApiModelProperty( "创建数据时间（不用传值）")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date create_time;

  @ApiModelProperty( "下次联系时间")
  @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
  private Date contact_time;

  @ApiModelProperty( "创建人 id（不用传值）")
  private Long create_id;

  @ApiModelProperty("删除状态（0：显示 1：隐藏）（不用传值）")
  private Long delete_state;

  @ApiModelProperty("数据类型（0：线索（潜在客户））（1：客户）（不用传值）")
  private Long type;

  @ApiModelProperty( "备注")
  private String remarks;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Long getUser_id() {
    return user_id;
  }

  public void setUser_id(Long user_id) {
    this.user_id = user_id;
  }

  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public String getTelephone() {
    return telephone;
  }

  public void setTelephone(String telephone) {
    this.telephone = telephone;
  }

  public Integer getIndustry() {
    return industry;
  }

  public void setIndustry(Integer industry) {
    this.industry = industry;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public Long getClues_source() {
    return clues_source;
  }

  public void setClues_source(Long clues_source) {
    this.clues_source = clues_source;
  }

  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }

  public Date getCreate_time() {
    return create_time;
  }

  public void setCreate_time(Date create_time) {
    this.create_time = create_time;
  }

  public Date getContact_time() {
    return contact_time;
  }

  public void setContact_time(Date contact_time) {
    this.contact_time = contact_time;
  }

  public Long getCreate_id() {
    return create_id;
  }

  public void setCreate_id(Long create_id) {
    this.create_id = create_id;
  }

  public Long getDelete_state() {
    return delete_state;
  }

  public void setDelete_state(Long delete_state) {
    this.delete_state = delete_state;
  }

  public Long getType() {
    return type;
  }

  public void setType(Long type) {
    this.type = type;
  }

  public String getRemarks() {
    return remarks;
  }

  public void setRemarks(String remarks) {
    this.remarks = remarks;
  }

  @Override
  public String toString() {
    return "Customer{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", user_id=" + user_id +
            ", phone='" + phone + '\'' +
            ", telephone='" + telephone + '\'' +
            ", industry='" + industry + '\'' +
            ", address='" + address + '\'' +
            ", clues_source=" + clues_source +
            ", level='" + level + '\'' +
            ", create_time=" + create_time +
            ", contact_time=" + contact_time +
            ", create_id=" + create_id +
            ", delete_state=" + delete_state +
            ", type=" + type +
            ", remarks='" + remarks + '\'' +
            '}';
  }
}
